import request from '@/utils/request';

export async function getPickingTaskByPage (params: any) {
    return request('/api/product/getPickingTaskByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addPickingTask (params: any) {
    return request('/api/product/addPickingTask', {
    method: 'POST',
    data: params,
  });
}

export async function updatePickingTask (params: any) {
    return request('/api/product/updatePickingTask', {
    method: 'POST',
    data: params,
  });
}

export async function delPickingTask (params: any) {
    return request('/api/product/delPickingTask', {
    method: 'POST',
    data: params,
  });
}


export async function exportPickingTask(params: any) {
    return request('/api/product/exportPickingTask', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getPickingTaskByPage, addPickingTask, updatePickingTask, delPickingTask, exportPickingTask }
